package com.bwie.parkdemo.mvvm.model.entity;

import android.text.TextUtils;

import com.bwie.lib_core.base.BaseEntity;
import com.google.gson.Gson;

/**
 * 签到签退服务器返回值
 * {
 "msg": "成功",
 "values": "{\"endAddress\":\"string\",\
 "endTime\":1583980222489,\"signId\":54,
 \"startAddress\":\"string\",\"startTime\":1583980222489,
 \"userId\":0}",
 "statuesCode": "200"
 }
 * */

public class SysSignEntity extends BaseEntity {

    private String values;
    private Values data;

    public void setValues(String values) {
        this.values = values;
    }

    public Values getData() {
        if (TextUtils.isEmpty(values))
            return null;
        data = new Gson().fromJson(values,Values.class);
        return data;
    }

    public static class Values{
        public int signId;
        public int userId;
        public String startTime;
        public String endTime;
        public String startAddress;
        public String endAddress;
    }
}
